package com.yunhe.tianhe.rentcars.entity.system;

import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * 部门表对应实体类
 * 
 * @author 朱钦明
 *
 */
public class Dept implements Serializable{

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private Long deptId;//部门编号
	private String deptName;//部门名称
	private String deptPhone;//部门固话
	private String ownerName;//负责人名称
	private String ownerMobile;//负责人手机
	private String inCity;//所属城市
	private String address;//详细地址
	private double gpsLon;//位置经度
	private double gpsLat;//位置维度
	private String remark;//备注描述
	@DateTimeFormat(pattern = "yyyy-MM-dd")
	private Date addTime;//添加时间
	
	/**
	 * 无参构造函数
	 */
	public Dept() {}
	
	/**
	 * 传入九个参数的构造函数
	 * @param deptName
	 * @param deptPhone
	 * @param ownerName
	 * @param ownerMobile
	 * @param inCity
	 * @param address
	 * @param gpsLon
	 * @param gpsLat
	 * @param remark
	 */
	public Dept(String deptName, String deptPhone,
			String ownerName, String ownerMobile, String inCity,
			String address, double gpsLon, double gpsLat, String remark) {
		this.deptName = deptName;
		this.deptPhone = deptPhone;
		this.ownerName = ownerName;
		this.ownerMobile = ownerMobile;
		this.inCity = inCity;
		this.address = address;
		this.gpsLon = gpsLon;
		this.gpsLat = gpsLat;
		this.remark = remark;
	}
	/**
	 * set和get方法
	 * @return
	 */
	
	public String getDeptName() {
		return deptName;
	}
	public Long getDeptId() {
		return deptId;
	}

	public void setDeptId(Long deptId) {
		this.deptId = deptId;
	}

	public void setDeptName(String deptName) {
		this.deptName = deptName;
	}
	public String getDeptPhone() {
		return deptPhone;
	}
	public void setDeptPhone(String deptPhone) {
		this.deptPhone = deptPhone;
	}
	public String getOwnerName() {
		return ownerName;
	}
	public void setOwnerName(String ownerName) {
		this.ownerName = ownerName;
	}
	public String getOwnerMobile() {
		return ownerMobile;
	}
	public void setOwnerMobile(String ownerMobile) {
		this.ownerMobile = ownerMobile;
	}
	public String getInCity() {
		return inCity;
	}
	public void setInCity(String inCity) {
		this.inCity = inCity;
	}
	public String getAddress() {
		return address;
	}
	public void setAddress(String address) {
		this.address = address;
	}
	public double getGpsLon() {
		return gpsLon;
	}
	public void setGpsLon(double gpsLon) {
		this.gpsLon = gpsLon;
	}
	public double getGpsLat() {
		return gpsLat;
	}
	public void setGpsLat(double gpsLat) {
		this.gpsLat = gpsLat;
	}
	public String getRemark() {
		return remark;
	}
	public void setRemark(String remark) {
		this.remark = remark;
	}
	public Date getAddTime() {
		return addTime;
	}
	public void setAddTime(Date addTime) {
		this.addTime = addTime;
	}
	
}
